create Cutout From Blocks
Create a cutout block whose path will be the contour of the given blocks. The cutout path for each block is derived from one of the two ways:
Blocks that have already have a vector path (shapes, SVG-based text or stickers).
Blocks that don't have a vector path are vectorized and then, optionally, simplified to eliminate jaggedness (images).
Performs an internal update to lay out pending changes, because the cutout reads the blocks' layout. With the setting features/implicitUpdatesEnabled off, the update runs only when a passed block has no layout, and it then lays out all pending changes. A block with no layout on a page that single page mode hides returns an error.
Return
the handle of the created cutout.
Parameters
the blocks whose shape will serve as the basis for the cutout's path.
the maximum number of pixels by which the cutout's path can deviate from the original contour. Default value is 2F.
the maximum number of pixels by which the simplified cutout path can deviate from the cutout contour. If 0, no simplification step is performed. Default value is 4F.
If true, the existing vector paths of the provided blocks will be used to create the cutout. If false, new shape information for the cutout will be generated.